﻿using _10_05Prism导航功能.Views;
using Prism.DryIoc;
using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using _10_06Prism模块化ModuleC;
using _10_02Prism模块化ModuleA;

namespace _10_05Prism导航功能
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : PrismApplication
	{
		protected override Window CreateShell()
		{
			return Container.Resolve<MainView>();
		}

		protected override void RegisterTypes(IContainerRegistry containerRegistry)
		{
		
		}

		protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
		{
			moduleCatalog.AddModule<ModuleCProfile>();
			moduleCatalog.AddModule<ModuleAProfile>();
			base.ConfigureModuleCatalog(moduleCatalog);
		}
		//protected override IModuleCatalog CreateModuleCatalog()
		//{
		//	return new DirectoryModuleCatalog()
		//	{
		//		ModulePath = @"./Modules"
		//	};
		//}

	}
}
